﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DH.Web.Attributes
{
    [AttributeUsage(AttributeTargets.Method)]
   public class FunctionAttribute:Attribute
    {
        public string Description { get { return DescriptionValue; } }
        private string DescriptionValue { get; set; }

        /// <summary>
        /// 是否受系统托管
        /// true： 受托管
        /// false： 不受托管
        /// </summary>
        public bool IsManage { get { return IsManageValue; } }
        private bool IsManageValue { get; set; }
        public FunctionAttribute(string name,bool isManage=false)
        {
            DescriptionValue = name;
            IsManageValue = isManage;
        }
    }
}
